<template>
  <van-cell :title="title" :label="label + ' - ' + title" center>
    <!-- 使用 right-icon 插槽来自定义右侧图标 -->
    <template #right-icon>
      <van-icon name="play-circle-o" size="0.6rem" @click="clickFn" />
    </template>
  </van-cell>
</template>

<script>
export default {
  props: {
    title: String,
    label: String,
    id: Number, //!音乐id，进入play页面的id
  },
  methods: {
    clickFn() {
      this.$router.push({
        path: "/play",
        query: {
          id: this.id,
        },
      });
    },
  },
};
</script>

<style>
</style>